package com.ruoyi.web.controller.Base;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.impl.IndexStatisticsInforServiceImpl;
import com.ruoyi.service.impl.ServiveStatisticsSeriveImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sta")
public class StatisticsController {
    @Autowired
    IndexStatisticsInforServiceImpl indexStatisticsInforService;
    @Autowired
    ServiveStatisticsSeriveImpl serviveStatisticsSerive;
    @GetMapping("/index")
    public AjaxResult getIndexStatisticsInfor(){
        return AjaxResult.success(indexStatisticsInforService.getIndexStatisticsInfor());
    }
    @GetMapping("/create")
    public AjaxResult getCreateStatisticsInfor(){
        return AjaxResult.success(serviveStatisticsSerive.getCreateStatisticsInfor());
    }
    @GetMapping("/sub")
    public AjaxResult getSubStatisticsInfor(){
        return AjaxResult.success(serviveStatisticsSerive.getSubStatisticsInfor());
    }
    @GetMapping("/useing")
    public AjaxResult getUseingStatisticsInfor(){
        return AjaxResult.success(serviveStatisticsSerive.getUseingStatisticsInfor());
    }
}
